package org.gruposp2p.proyectokarma.gwt.client.domain;

import java.util.HashSet;
import java.util.Set;

public class Address  implements java.io.Serializable {


     private Long id;
     private String value;
     private String postalCode;
     private String locality;
     private String province;
     private String country;
     private Set<Address> addresses = new HashSet<Address>(0);

    public Address() { }
	
    public Address(Long id, String value, String postalCode, String locality, String province, String country) {
        this.id = id;
        this.value = value;
        this.postalCode = postalCode;
        this.locality = locality;
        this.province = province;
        this.country = country;
    }

    public Address(Long id, String value, String postalCode, String locality, String province, String country, Set addresses) {
       this.id = id;
       this.value = value;
       this.postalCode = postalCode;
       this.locality = locality;
       this.province = province;
       this.country = country;
       this.addresses = addresses;
    }
 
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getValue() {
        return this.value;
    }
    
    public void setValue(String value) {
        this.value = value;
    }
    
    public String getPostalCode() {
        return this.postalCode;
    }
    
    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }
    
    public String getLocality() {
        return this.locality;
    }
    
    public void setLocality(String locality) {
        this.locality = locality;
    }
    
    public String getProvince() {
        return this.province;
    }
    
    public void setProvince(String province) {
        this.province = province;
    }
    
    public String getCountry() {
        return this.country;
    }
    
    public void setCountry(String country) {
        this.country = country;
    }

    public Set getPeerAddresses() {
        return this.addresses;
    }
    
    public void setPeerAddresses(Set addresses) {
        this.addresses = addresses;
    }

}


